<!-- 发布文章页面 -->

{{extend '../_layouts/home.html'}} {{block 'title'}}{{'多人博客 - 首页'}}{{/block}} {{block 'body'}}
<section class="container">
    <div class="row">
        <div class="col-md-5">
            <form id="new_form" action="/topic/new" method="post">
                <div class="form-group">
                    <label for="input_name">文章标题</label>
                    <input type="text" class="form-control" required minlength="1" id="input_title" name="title" placeholder="请写入文章标题">
                    <!-- <input type="hidden" class="form-control" name="name" id="textarea_name" value="{{ user.nickname }}"></input>
                    <input type="hidden" class="form-control" name="email" id="textarea_email" value="{{ user.email }}"></input> -->
                    <input type="hidden" class="form-control" name="authorId" id="textarea_id" value="{{ user._id }}"></input>

                </div>
                <div class="form-group">
                    <label for="textarea_message">文章内容</label>
                    <textarea class="form-control" name="message" id="textarea_message" cols="30" rows="10" required minlength="1"></textarea>
                </div>
                <button type="submit" class="btn btn-default">发表</button>
            </form>
        </div>
    </div>
</section>

{{/block}}